package org.vectrics.company;

import org.vectrics.common.db.CodedObject;
import org.vectrics.common.db.Voidable;
import org.vectrics.user.UserPrivilegeType;

public class CompanyPersonGroupType implements CodedObject, Voidable {
    private String code = null;

    private String descriptionCode = null;

    private UserPrivilegeType privilegeWhoCanAssign = null;

    private boolean voided = true;

    public CompanyPersonGroupType() {
        super();
    }

    /**
     * @return Returns the code.
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return Returns the descriptionCode.
     */
    public String getDescriptionCode() {
        return this.descriptionCode;
    }

    /**
     * @return Returns the privilegeWhoCanAssign.
     */
    public UserPrivilegeType getPrivilegeWhoCanAssign() {
        return this.privilegeWhoCanAssign;
    }

    /**
     * @return Returns the voided.
     */
    public boolean getVoided() {
        return this.voided;
    }

    /**
     * @param code
     *            The code to set.
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param descriptionCode
     *            The descriptionCode to set.
     */
    public void setDescriptionCode(String descriptionCode) {
        this.descriptionCode = descriptionCode;
    }

    /**
     * @param privilegeWhoCanAssign
     *            The privilegeWhoCanAssign to set.
     */
    public void setPrivilegeWhoCanAssign(UserPrivilegeType privilegeWhoCanAssign) {
        this.privilegeWhoCanAssign = privilegeWhoCanAssign;
    }

    /**
     * @param voided
     *            The voided to set.
     */
    public void setVoided(boolean voided) {
        this.voided = voided;
    }

}
